<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="format-detection" content="telephone=no" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<title>订单核销</title>
	<base id="headbase" href="__TMPL__/seatsel/" />
	{include file="./tplnew/public/css_weui.html" /}
	<link rel="stylesheet" href="css/style.css?{$suffix}" />
<style>
.hotel-done-alert {text-align: center;padding: 20px;font-size: 18px;}
.hotel-done-alert i {font-size: 75px;color: #12b319;vertical-align: middle;margin-bottom: 5px;}
</style>
</head>
<body class="body-fixed-bottom">

<header class="wenew-header wenew-header-green">
	<a href="{:url('seatsel/order/index')}" class="wenew-header-icon-back"><i class="iconfontzz icon-fanhuijiantou w15"></i>返回</a>
	<div class="wenew-header-title">订单核销</div>
</header>

{if condition="$orderInfo['trade_status'] eq 5"}
<div class="weui-cells order-info">
	<div class="hotel-done-alert">
		<i class="iconfont">&#xe616;</i>
		<div>核销成功</div>
	</div>
</div>
{/if}

<div class="wy-media-box weui-media-box_text">
	<div class="weui-media-box__bd">
		<div class="weui-media-box_appmsg ord-pro-list">
			<div class="weui-media-box__hd"><a href="{:url('seatsel/product/detail', ['pid'=>$productInfo['id']])}"><img class="weui-media-box__thumb" src="{$productInfo['picurl']}" alt=""></a></div>
			<div class="weui-media-box__bd">
				<h1 class="wefix-media-box__we_title ord-pro-link"><a href="{:url('seatsel/product/detail', ['pid'=>$productInfo['id']])}">{$productInfo['name']}</a></h1>
				<ul class="show-cloord-time">
					<li><i><img src="images/details-time.png"></i><span class="address-time">{$specInfo['name']}</span></li>
					<li><i><img src="images/details-location.png"></i><span class="address-location">{$productInfo['place']}</span></li>
				</ul>
				<div class="mt10">
					{volist name="orderProductList" id="vo"}
						<?php
							$seatNum++;
							$productFee = $vo['real_price'];
							
							$productTotalPrice += $productFee;
							$productDeliveryPrice += $deliveryFee;
						?>
						<div class="wefix-media-box__we_work">{$vo['region_name']}{$vo['pai']}排{$vo['zuo']}座【{$vo['real_price']}元】
						{if condition="$vo['status'] eq 9"}
							(已退款)
						{/if}
						</div>
					{/volist}
				</div>
			</div>
		</div>
	</div>
</div>

<div class="weui-panel">
	<div class="weui-panel__bd">
		<div class="weui-media-box weui-media-box_small-appmsg">
			<div class="weui-cells">
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14"><span class="mg-r-10">实付款：</span>{$orderInfo['total_fee']}</p>
					</div>
				</div>
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14"><span class="mg-r-10">订单号：</span>{$orderInfo['order_no']}</p>
					</div>
				</div>
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14"><span class="mg-r-10">下单时间：</span>{$orderInfo['create_time']}</p>
					</div>
				</div>
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14"><span class="mg-r-10">支付方式：</span>{$orderInfo['pay_method']}</p>
					</div>
				</div>
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14"><span class="mg-r-10">用户名：</span>{$orderInfo['username']}</p>
					</div>
				</div>
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14"><span class="mg-r-10">真实姓名：</span>{$orderInfo['realname']}</p>
					</div>
				</div>
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14"><span class="mg-r-10">手机号：</span>{$orderInfo['mobile']}</p>
					</div>
				</div>
				{if condition="$orderInfo['trade_status'] eq 2"}
				<div class="weui-cell weui-cell_access">
					<div class="weui-cell__bd weui-cell_primary">
						<p class="font-14">
							<a href="{:url('seatsel/orderFinish/doEwmVerify', ['orderId'=>$orderId])}" class="weui-btn weui-btn_primary J_ajaxSend">
								立即核销
							</a>
						</p>
					</div>
				</div>
				{/if}
			</div>
		</div>
	</div>
</div>

<?php
$layerStyle = 2;
?>
{include file="./tplnew/public/script_wap.html" /}

</body>
</html>